import { Rule, RuleType } from '@midwayjs/decorator';

export class BasePageDto {
  @Rule(RuleType.number().min(0).default(0))
  start: number;

  @Rule(RuleType.number().min(1).default(50))
  limit: number;

  @Rule(RuleType.string().default('ASC'))
  order: 'ASC' | 'DESC';
}
